<template>
  <div class="son">
    son::祖父组件的参数 {{ house }}
  </div>
</template>
<script setup lang="ts" name="son">
import emitter from '@/utils/index';
import { ref } from 'vue'

const house = ref(0);

emitter.on('send-house',(value:any) =>{
    house.value = value;
})

</script>
<style  scoped>
.son{
    padding: 50px;
    width: 200px;
    background: yellow;
    color: #fff;
    height: 200px;
}
</style>
